package com.qf.shop.system.api;

import com.qf.shop.common.core.constants.ModuleConstants;
import com.qf.shop.system.api.impl.CatgoryServiceImpl;
import com.qf.shop.system.dto.CatgoryDto;
import org.aspectj.apache.bcel.classfile.ModuleMainClass;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: admin
 * @time: 2022/5/17 19:44
 */
@FeignClient(
        value = ModuleConstants.SHOP_SYSTEM,
        path = "/catgory",
        contextId = "catgory",
        fallback = CatgoryServiceImpl.class
)
public interface CatgoryService {
    @GetMapping("/homeList")
    public List<CatgoryDto> limitList();

    @GetMapping("/sortList")
    public ArrayList treeList();

}
